import 'package:flutter/material.dart';

class LoginBtn extends StatelessWidget {
  final String title;
  final bool enable;
  final VoidCallback? onPressed;

  const LoginBtn({
        super.key,
        required this.title,
        this.enable = true,
        this.onPressed,

  });

  @override
  Widget build(BuildContext context) {
    return MaterialButton(

      height: 45,
      onPressed:enable ? onPressed : null,

      shape: RoundedRectangleBorder(
    borderRadius: BorderRadius.circular(6)),
      color: Colors.orange,
      disabledColor: Colors.white60,
      child: Text(
        title,
        style: const TextStyle(color: Colors.white,fontSize: 16),
      ),
    );
  }
}
